package com.dbh.algorithm.disruptor;

import com.lmax.disruptor.WorkHandler;

/**
 *  消费者
 *
 * @author dongbanghui
 * @date 2018/06/22
 */
public class Consumer implements WorkHandler<PCData> {

    @Override
    public void onEvent(PCData event) throws Exception {
        System.out.println(Thread.currentThread().getId() + ":Event:--" + event.get() * event.get() + "--");
    }
}
